#include <stdio.h>
typedef struct one {
    char c1;
    short s1;
    char c2;
    int i3;
}aliginStruct;
void main(void){
    printf("sizeof(aliginStruct)=%d\n",sizeof(aliginStruct));
    aliginStruct aliginStruct1={.c1=1,.s1=2,.c2=3,.i3=4};
    printf("c1=%d\n",(int)&aliginStruct1.c1-(int)&aliginStruct1);
    printf("s1=%d\n",(int)&aliginStruct1.s1-(int)&aliginStruct1);
    printf("c2=%d\n",(int)&aliginStruct1.c2-(int)&aliginStruct1);
    printf("i3=%d\n",(int)&aliginStruct1.i3-(int)&aliginStruct1);

    char *p =(char *)&aliginStruct1;
    for (int i=0;i<12;i++){
        printf("第%d个值为%d\n",i,*p);
        p++;
    }

}